import request from '@/utils/request'

// 查询菜品订单详情列表
export function listDishorderitem(query) {
  return request({
    url: '/system/dishorderitem/list',
    method: 'get',
    params: query
  })
}

// 查询菜品订单详情详细
export function getDishorderitem(id) {
  return request({
    url: '/system/dishorderitem/' + id,
    method: 'get'
  })
}

// 新增菜品订单详情
export function addDishorderitem(data) {
  return request({
    url: '/system/dishorderitem',
    method: 'post',
    data: data
  })
}

// 修改菜品订单详情
export function updateDishorderitem(data) {
  return request({
    url: '/system/dishorderitem',
    method: 'put',
    data: data
  })
}

// 删除菜品订单详情
export function delDishorderitem(id) {
  return request({
    url: '/system/dishorderitem/' + id,
    method: 'delete'
  })
}
